package main

import (
	"flag"
	"historyOfWikipedia/internal/handle/reversion"

	log "github.com/sirupsen/logrus"
)

func main() {

	var threadcount int
	flag.IntVar(&threadcount, "t", 10, "线程数，默认为 10")
	flag.Parse()

	log.Infof("开启 %d 个线程，开始收集结果", threadcount)
	for i := 0; i < threadcount; i++ {
		go reversion.WorkerInfo()
	}
	forever := make(chan bool)
	log.Printf(" [*] Waiting for messages. To exit press CTRL+C")
	<-forever

}
